package com.msmall.community.bbs.action.wml;

import java.util.List;

import com.msmall.community.bbs.model.Board;
import com.msmall.community.bbs.model.Topic;
import com.msmall.community.bbs.service.BoardManager;
import com.msmall.community.bbs.service.TopicManager;


public class BoardAction extends BBSBaseAction{

	private static final long serialVersionUID = -832282950329497797L;
	
	private Board board;
	
	private List<Topic> topics;
	
	private TopicManager topicManager;
	
	private BoardManager boardManager;
	
	public String index(){
//		board = boardManager.getBoard(boardId);
//		boardManager.getTopicPaginationByBoard(page, getUserid(), boardId);
//		page.initPageString(super.getRequest());
//		
//		isMaster();
		return "boardIndex";
	}
	
	public String list(){
		return SUCCESS;
	}
	
	public void setTopicManager(TopicManager topicManager) {
		this.topicManager = topicManager;
	}

	public void setBoardManager(BoardManager boardManager) {
		this.boardManager = boardManager;
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board board) {
		this.board = board;
	}

	public List<Topic> getTopics() {
		return topics;
	}

	public void setTopics(List<Topic> topics) {
		this.topics = topics;
	}
}
